package com.android.home.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.android.common.base.rv.BaseRvHolder;
import com.android.home.R;
import com.android.home.mvp.model.home.LayerListBean;

public class LayerListHolder<T> extends BaseRvHolder<LayerListBean.RowsBean> {
    /**
     * 浏览
     */
    private static final String VIEW_HANDLE_TYPE = "0";

    private Context mContext;

    private TextView mTvName;

    private TextView mTvTime;

    private TextView mTvDesc;

    public LayerListHolder(View itemView) {
        super(itemView);
        mContext = itemView.getContext();
        mTvName = itemView.findViewById(R.id.tv_name);
        mTvTime = itemView.findViewById(R.id.tv_time);
        mTvDesc = itemView.findViewById(R.id.tv_desc);
    }

    @Override
    public void bindData(LayerListBean.RowsBean bean, int position) {
        mTvName.setText(bean.getHandleTypeValue());
        mTvTime.setText(bean.getHandleTime());
        mTvDesc.setText(bean.getHandleContent());
    }
}
